package com.flying.learning.si.sg.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.integration.channel.DirectChannel;
import org.springframework.integration.config.EnableIntegration;

@Configuration
@EnableIntegration
public class IntegrationConfig {
    @Bean("say.hello.channel")
    public DirectChannel sayHelloChannel(){
        return new DirectChannel();
    }
    @Bean("get.hello.channel")
    public DirectChannel getHelloChannel(){
        return new DirectChannel();
    }
}
